function initTTripMode(){
    $.ajax({
        url : "http://localhost:8080/TTripModeServlet",
        type : "get",
        dataType : "json",
        success:function (res) {
            console.log(res.tTripModes);
            // 获取出行方式数据
            let tTripModes =  res.tTripModes;
            // 循环遍历 tTripModes
            // $.each(tTripModes,function(){});
            let optionStr = "";
            $.each(tTripModes,function(i){
                let trip = tTripModes[i];
                optionStr += `<option value="${trip.id}">${trip.name}</option> `;
            });
            $("#sel").append(optionStr);
        },
        error:function () {
            console.log("initTTripMode  err");
        }
    });
}
